package controllers

import (
	"github.com/astaxie/beego"
)

type AddController struct {
	beego.Controller
}

func (c *AddController) Post() {
	tag := c.GetString("tag", "")
	result := c.GetString("result", "")
	apiMapping[tag] = result
	c.Redirect("/", 302)
}
